<template>
  <div class="hot_search" >
      <div class="title">
        <h5>热门搜索</h5>
        <a><i class="iconfont icon-huo"></i></a>
      </div>
      <ul>
        <li v-for="(hot,index) in hotSearchResList"  :key="index" >
        <a @click="$emit('onSearch',hot.keywords)">{{ hot.keywords }}</a>
        </li>
      </ul>
    </div>
</template>

<script>
export default {
  name: 'hot-search',
  props: {
    hotSearchResList: {
      type: Array,
      required: true,
      default: () => { return [] }
    }
  }
}
</script>
<style lang="scss" scoped>

.hot_search{
  padding: 0px 15px 15px 15px;
  .title{
  color: rgb(207, 200, 200);
  h5{
    margin: 0;
    font-weight: 400;
    font-size:16px;
  }
  }
  .icon-huo{
    //  color: rgb(228, 27, 27);
    color: rgb(207, 200, 200);
     font-size: 18px
  }
  div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  ul {
    overflow: hidden;
    li {
      padding:  5px 0px;
      font-size:16px;
      line-height:30px;
      display: flex;
      align-items: center;
      justify-content: flex-start ;

    }
  }

}

</style>
